package com.deer.wms.instock.service.enter.impl;

import com.deer.wms.ASN.manage.model.asn.AsnDetail;
import com.deer.wms.ASN.manage.model.asn.AsnMaster;
import com.deer.wms.base.system.model.OrderToErpBO;
import com.deer.wms.instock.model.erpType.ErpType;
import com.deer.wms.instock.service.enter.AbstractEnterErp;
import com.deer.wms.system.manage.service.CodeRuleService;
import com.deer.wms.ware.task.service.PushErpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Author: xu
 * @Date: 2022/06/20/11:20
 * @Description: 251300056返修拆改通知单，10其他入库单
 */@Component

public class Repair extends AbstractEnterErp {
    @Autowired
    private CodeRuleService codeRuleService;
    @Autowired
    private PushErpService pushErpService;


    @Override
    public ErpType gainType() {
      return   new ErpType(251300056, 10);
    }

    /**
     * 字段添加
     *  @param orderToErpBO
     * @param asnMaster
     * @param asnMap
     */
    @Override
    protected void add(OrderToErpBO orderToErpBO, AsnMaster asnMaster, Map<String, AsnDetail> asnMap) {
        return;
    }
    protected void pushErp(OrderToErpBO orderToErpBO){
        pushErpService.pushIMBIll(orderToErpBO);
    }
}
